<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('company/' . ($form->getObject()->isNew() ? 'create' : 'update') . (!$form->getObject()->isNew() ? '?id=' . $form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
    <?php if (!$form->getObject()->isNew()): ?>
        <input type="hidden" name="sf_method" value="put" />
    <?php endif; ?>
    <table>
        <tfoot>
            <tr>
                <td colspan="2">
                    <?php echo $form->renderHiddenFields(false) ?>
                    &nbsp;<a href="<?php echo url_for('company/index') ?>"><?php echo __('Back to list')?></a>
                    <input type="submit" value="<?php echo __('Save') ?>" />
                </td>
            </tr>
        </tfoot>
        <tbody>
            <?php echo $form->renderGlobalErrors() ?>
            <tr>
                <th><?php echo $form['user_id']->renderLabel() ?></th>
                <td>
                    <?php echo $form['user_id']->renderError() ?>
                    <?php echo $form['user_id'] ?>
                </td>
            </tr>
            <tr>
                <th><?php echo $form['name']->renderLabel() ?></th>
                <td>
                    <?php echo $form['name']->renderError() ?>
                    <?php echo $form['name'] ?>
                </td>
            </tr>
            <tr>
                <th><?php echo $form['description']->renderLabel() ?></th>
                <td>
                    <?php echo $form['description']->renderError() ?>
                    <?php echo $form['description'] ?>
                </td>
            </tr>
            <tr>
                <th><?php echo $form['email']->renderLabel() ?></th>
                <td>
                    <?php echo $form['email']->renderError() ?>
                    <?php echo $form['email'] ?>
                </td>
            </tr>
            <tr>
                <th><?php echo $form['phone']->renderLabel() ?></th>
                <td>
                    <?php echo $form['phone']->renderError() ?>
                    <?php echo $form['phone'] ?>
                </td>
            </tr>
            <tr>
                <th><?php echo $form['mobile']->renderLabel() ?></th>
                <td>
                    <?php echo $form['mobile']->renderError() ?>
                    <?php echo $form['mobile'] ?>
                </td>
            </tr>
            <tr>
                <th><?php echo $form['logo']->renderLabel() ?></th>
                <td>
                    <?php echo $form['logo']->renderError() ?>
                    <?php echo $form['logo'] ?>
                </td>
            </tr>
            <tr>
                <th><?php echo $form['need_check']->renderLabel() ?></th>
                <td>
                    <?php echo $form['need_check']->renderError() ?>
                    <?php echo $form['need_check'] ?>
                </td>
            </tr>
            <tr>
                <th><?php echo $form['statues']->renderLabel() ?></th>
                <td>
                    <?php echo $form['statues']->renderError() ?>
                    <?php echo $form['statues'] ?>
                </td>
            </tr>

        </tbody>
    </table>
</form>
